﻿Imports System.Data.SqlClient

Public Class ViewProfile
    Inherits System.Web.UI.Page

    Private Shared prevPage As String = String.Empty

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If (Not IsPostBack) Then
            prevPage = Request.UrlReferrer.ToString()
        End If

        SqlDataSource1.SelectParameters(0).DefaultValue = Membership.GetUser.UserName()
        DetailsView1.DataBind()

 
    End Sub



    Protected Sub homeButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles homeButton.Click
        Response.Redirect("InstructorHome.aspx")
    End Sub

    Protected Sub backButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles backButton.Click
        Response.Redirect(prevPage)
    End Sub
End Class